package com.lrd.snapshotorder.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 */
@Data
@TableName(value = "snapshot_order")
public class SnapshotOrder implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 批次号
     */
    @TableField(value = "batch_number")
    private Integer batchNumber;

    /**
     * 订单号
     */
    @TableField(value = "order_no")
    private String orderNo;

    /**
     * 投递时间
     */
    @TableField(value = "post_time")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date postTime;

    /**
     * 发货人
     */
    @TableField(value = "sender")
    private String sender;

    /**
     * 发货人地址
     */
    @TableField(value = "sender_address")
    private String senderAddress;

    /**
     * 收货人
     */
    @TableField(value = "recipient")
    private String recipient;

    /**
     * 收货人地址
     */
    @TableField(value = "recipient_address")
    private String recipientAddress;

    /**
     * 邮费
     */
    @TableField(value = "postage")
    private Integer postage;

    /**
     * 重量
     */
    @TableField(value = "weight")
    private Integer weight;

    /**
     * remarks
     */
    @TableField("remarks")
    private String remarks;

}